/* Context Highlights */

.context-highlight {
	pointer-events: none;
}

.blurry-vision-highlight line {
	stroke-width: 2px;
	animation: fade-out 1s ease-in forwards;
	opacity: 1;
}

/* animation that fades out */
@keyframes fade-out {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.context-highlight circle {
	stroke-width: 1px;
	pointer-events: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.context-highlight-generating circle {
	stroke-dasharray: 3px;
	stroke-width: 6px;
	fill: none;
	animation: dash 100s linear infinite;
}

.context-highlight-label {
	position: absolute;
	color: var(--tl-color-text-shadow);
	padding: 4px;
	font-size: 12px;
	background-color: var(--tl-color-tooltip);
	border-radius: 0px 0px 6px 0px;
	font-weight: 500;
	white-space: nowrap;
	margin-top: -0.5px;
	margin-left: -0.5px;
	pointer-events: none;
	font-family: 'Inter', sans-serif;
}

@keyframes dash {
	to {
		stroke-dashoffset: -2000;
	}
}

/* Fairy Row */

.fairy-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 8px;
	min-height: 50px;
}

.fairy-row__input {
	pointer-events: auto;
}

/* Fairy Square */

.fairy-selected {
	position: relative;
}

.fairy-selected::before,
.fairy-selected::after,
div:not(.fairy-sidebar-group) > .fairy-toggle-button[data-isactive='true']::before,
div:not(.fairy-sidebar-group) > .fairy-toggle-button[data-isactive='true']::after,
.fairy-sidebar-group[data-is-active='true']::before,
.fairy-sidebar-group[data-is-active='true']::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	border: 2px solid var(--tl-color-primary);
	border-radius: 2px;
	pointer-events: none;
}

.fairy-selected::before,
div:not(.fairy-sidebar-group) > .fairy-toggle-button[data-isactive='true']::before,
.fairy-sidebar-group[data-is-active='true']::before {
	clip-path: polygon(
		0 0,
		12px 0,
		12px 2px,
		2px 2px,
		2px 12px,
		0 12px,
		0 100%,
		12px 100%,
		12px calc(100% - 2px),
		2px calc(100% - 2px),
		2px calc(100% - 12px),
		0 calc(100% - 12px)
	);
}

.fairy-selected::after,
.fairy-toggle-button[data-isactive='true']::after,
.fairy-sidebar-group[data-is-active='true']::after {
	clip-path: polygon(
		100% 0,
		calc(100% - 12px) 0,
		calc(100% - 12px) 2px,
		calc(100% - 2px) 2px,
		calc(100% - 2px) 12px,
		100% 12px,
		100% 100%,
		calc(100% - 12px) 100%,
		calc(100% - 12px) calc(100% - 2px),
		calc(100% - 2px) calc(100% - 2px),
		calc(100% - 2px) calc(100% - 12px),
		100% calc(100% - 12px)
	);
}

.fairy-toggle-button[data-isactive='true']::before,
.fairy-toggle-button[data-isactive='true']::after {
	transform: scale(0.9);
}

/* Fairy Input */

.fairy-input {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 12px;
	padding-right: 8px;
	min-height: 41px;
	border-top: 1px solid var(--tl-color-divider);
}

.fairy-input__form {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.fairy-input__field {
	padding: 12px;
	pointer-events: auto;
	border: none;
	background: transparent;
	color: var(--tl-color-text);
	font-size: 12px;
	font-family: inherit;
	outline: none;
	resize: none;
	min-height: 17px;
	max-height: 85px;
	overflow-y: auto;
	line-height: 1.4;
	flex: 1;
}

.fairy-input__field::placeholder {
	color: var(--tl-color-text-3);
}

.fairy-input__submit {
	pointer-events: auto;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	padding: 10px;
	margin: -10px;
	margin-right: -5px;
	margin-bottom: 2px;
	background-color: transparent;
	border: none;
	border-radius: var(--tl-radius-2);
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	align-self: flex-end;
}

.fairy-input__submit:hover:not(:disabled) {
	background-color: var(--tl-color-hint);
}

.fairy-input__submit:disabled {
	filter: grayscale(100%);
	cursor: not-allowed;
}

.fairy-selected-corner {
	position: absolute;
	width: 10px;
	height: 10px;
	border: 0 solid var(--tl-color-primary);
}

.fairy-sprite {
	pointer-events: none;
	width: 100%;
	height: 100%;
}

.fairy-toggle-button {
	position: relative;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
}

.fairy-button-project-indicator {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1.5px solid;
	pointer-events: none;
	z-index: 10;
}

.fairy-button-project-indicator--orchestrator {
	background-color: transparent !important;
	border-width: 2px;
	width: 10px;
	height: 10px;
	top: 1px;
	right: 1px;
}

/* Fairy HUD */

.tla-fairy-hud {
	position: fixed;
	right: 6px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	border-radius: var(--tl-radius-2);
	box-shadow: var(--tl-shadow-1);
	border-radius: var(--tl-radius-2);
	gap: 0px;
	z-index: var(--tl-layer-canvas-in-front);
}

.tla-fairy-hud-content {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0px;
}

/* Fairy HUD Container Scrollbar */

* {
	/* Prevent screen bouncing when you scroll up through the chat history */
	overscroll-behavior-y: none;
}

.tla-fairy-hud .tlui-toolbar::-webkit-scrollbar {
	width: 6px;
}

.tla-fairy-hud .tlui-toolbar::-webkit-scrollbar-track {
	background: transparent;
}

.tla-fairy-hud .tlui-toolbar::-webkit-scrollbar-thumb {
	background: var(--tl-color-muted-1);
	border-radius: 3px;
}

.tla-fairy-hud .tlui-toolbar {
	scrollbar-width: thin;
	scrollbar-color: var(--tl-color-muted-1) transparent;
	align-items: center;
}

/* Fairy Toolbar Header */

.fairy-toolbar-header {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--tl-color-divider);
	padding: 4px;
	flex-shrink: 0;
	gap: 8px;
}

.fairy-id-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 1;
	font-size: 12px;
	color: var(--tl-color-text-2);
	padding: 0px 6px;
	text-align: center;
	margin-left: 16px;
}

.fairy-spinner-container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
}

.fairy-toolbar-stack-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid var(--tl-color-divider);
	flex-shrink: 0;
}

.fairy-toolbar-button {
	font-size: 14px;
	height: 32px;
	margin: -4px;
}

.fairy-toolbar-sidebar-button {
	height: 32px;
	font-size: 14px;
}

.fairy-toolbar-sidebar-button:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.fairy-new-button {
	margin-top: 4px;
	align-items: center;
	display: flex;
	justify-content: center;
}

/* Fairy Buttons Container */

.fairy-buttons-container {
	width: 43px;
	display: flex;
	flex-direction: column;
	background-color: var(--tl-color-panel);
	border-radius: var(--tl-radius-2);
	z-index: 0;
}

.fairy-chat-panel[data-panel-state='open'] + .fairy-buttons-container {
	border-left: 1px solid var(--tl-color-divider);
	border-radius: 0 var(--tl-radius-2) var(--tl-radius-2) 0;
}

.fairy-list-scrollable {
	height: calc(48px * 3 + 11px); /* 4 fairies max visible */
	overflow-y: auto;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE and Edge */
}

.fairy-list-scrollable::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.fairy-sidebar-group {
	position: relative;
}

.fairy-sidebar-group::after {
	content: '';
	position: absolute;
	inset: 4px;
	background-color: var(--tl-color-muted-2);
	border-radius: var(--tl-radius-2);
}

/* Fairy Chat Panel */

.fairy-chat-panel {
	display: flex;
	flex-direction: column;
	width: 350px;
	height: 224px;
	background-color: var(--tl-color-panel);
	border-radius: var(--tl-radius-2);
	overflow: hidden;
	pointer-events: auto;
	z-index: 2;
}

/* Fairy Debug Dialog - Fixed width and height */
.fairy-debug-dialog-wrapper {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
}

/* Make the dialog content fixed size */
.tlui-dialog__content:has(.fairy-debug-dialog-wrapper) {
	width: 800px;
	height: 600px;
	max-width: 800px;
	max-height: 600px;
}

/* Fairy Chat History */

.fairy-chat-history {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 0;
	height: 0;
	scrollbar-width: 8px;
	scrollbar-color: var(--tl-color-muted-1) transparent;
}

.fairy-chat-history span:not(button *),
.fairy-chat-history div:not(button *),
.fairy-chat-history p:not(button *) {
	user-select: text;
	cursor: initial;
}

.fairy-chat-history::-webkit-scrollbar {
	width: 8px;
}

.fairy-chat-history::-webkit-scrollbar-track {
	background: transparent;
}

.fairy-chat-history::-webkit-scrollbar-thumb {
	background: var(--tl-color-muted-1);
	border-radius: 4px;
}

.fairy-chat-history-section {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
	padding-top: 4px;
}

.fairy-chat-history-section:not(:first-child) {
	padding-top: 8px;
}

.fairy-chat-history-section:last-child:not(:only-child) {
	min-height: calc(100% + 4px);
}

.fairy-chat-history-prompt-container {
	flex-shrink: 0;
}

.fairy-chat-history-prompt-sticky {
	margin: -4px 0px 0px 0px;
	padding: 0px;
	z-index: 10;
	background-color: var(--tl-color-panel);
}

.fairy-chat-history-prompt,
.fairy-chat-history-prompt-fairy {
	background-color: var(--tl-color-low);
	border-radius: 8px;
	padding: 8px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--tl-color-text-1);
	word-wrap: break-word;
	max-height: 150px;
	overflow-y: auto;
	scrollbar-color: var(--tl-color-text-3) transparent;
}

.fairy-chat-history-prompt-fairy {
	color: var(--tl-color-text-3);
	font-style: italic;
}

.fairy-chat-history-prompt::-webkit-scrollbar {
	width: 6px;
	background: transparent;
}

.fairy-chat-history-prompt::-webkit-scrollbar-thumb {
	background: var(--tl-color-text-3);
	border-radius: 3px;
}

.fairy-chat-history-prompt-content {
	white-space: pre-wrap;
}

.fairy-chat-history-actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fairy-chat-history-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fairy-chat-history-group-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background-color: transparent;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	color: var(--tl-color-text-3);
	cursor: pointer;
	margin-left: -4px;
	text-align: left;
	align-items: start;
}

.fairy-chat-history-group-toggle:hover {
	color: var(--tl-color-text-1);
}

.fairy-chat-history-group-toggle svg {
	width: 14px;
	height: 14px;
	color: var(--tl-color-text-3);
	flex-shrink: 0;
	cursor: pointer;
}

.fairy-chat-history-group-toggle:hover svg {
	color: var(--tl-color-text-1);
}

.fairy-chat-history-group-toggle * {
	cursor: pointer;
}

.fairy-chat-history-group-summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 2px 4px;
	font-size: 12px;
	color: var(--tl-color-text-3);
}

.fairy-chat-history-group-toggle-and-items {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fairy-chat-history-group-items {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 2px;
}

.fairy-chat-history-action-content {
	white-space: pre-wrap;
	word-wrap: break-word;
}

.fairy-chat-history-action {
	display: flex;
	flex-direction: row;
	align-items: start;
	gap: 6px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--tl-color-text-3);
}

.fairy-chat-history-action-message {
	color: var(--tl-color-text-1);
}

.fairy-chat-history-action-message ol,
.fairy-chat-history-action-message ul {
	margin-top: -28px;
}

.fairy-chat-history-action-message li {
	margin-bottom: -14px;
}

.fairy-chat-history-action-icon svg {
	width: 14px;
	height: 14px;
	color: var(--tl-color-text-3);
	margin-top: 2px;
}

.fairy-chat-history-item-container {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fairy-chat-history-item-container > .fairy-chat-history-action {
	padding-left: 2px;
}

.fairy-chat-loading {
	color: var(--tl-color-text-3);
	font-size: 12px;
	text-align: center;
	padding: 4px;
	margin-left: 12px;
	margin-bottom: 6px;
}

.fairy-chat-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.fairy-chat-empty-text {
	color: var(--tl-color-text-3);
	font-size: 12px;
	text-align: center;
	height: auto;
	flex-shrink: 0;
}

.fairy-chat-empty-message {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Fairy Info View */

.fairy-info-view {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: auto;
}

/* shared todo List Inline */

.shared-todo-list-inline {
	display: flex;
	flex-direction: column;
	flex: 1;
	overflow: hidden;
	height: 100%;
}

.shared-todo-list-header {
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 8px;
	color: var(--tl-color-text-2);
	padding-left: 4px;
}

.shared-todo-list-empty {
	color: var(--tl-color-text-3);
	font-size: 12px;
	text-align: center;
	padding: 20px;
}

.shared-todo-list-items {
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	flex: 1;
	padding: 8px;
	scrollbar-width: 8px;
	scrollbar-color: var(--tl-color-muted-1) transparent;
}

.shared-todo-list-items::-webkit-scrollbar {
	width: 8px;
}

.shared-todo-list-items::-webkit-scrollbar-track {
	background: transparent;
}

.shared-todo-list-items::-webkit-scrollbar-thumb {
	background: var(--tl-color-muted-1);
	border-radius: 4px;
}

.shared-todo-item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-left: 4px;
	border-radius: 6px;
	font-size: 12px;
	line-height: 1.3;
}

.shared-todo-item-main {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.shared-todo-item-icon {
	font-size: 10px;
	width: 12px;
	text-align: center;
	flex-shrink: 0;
	user-select: none;
}

.shared-todo-item-text {
	flex: 1;
	color: var(--tl-color-text-3);
	user-select: none;
	padding-bottom: 2px;
}

.shared-todo-item-delete {
	appearance: none;
	background: none;
	border: none;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	margin-left: 4px;
	cursor: pointer;
	color: var(--tl-color-text-3);
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shared-todo-item-delete:hover {
	color: var(--tl-color-text);
}

.shared-todo-item-drag {
	appearance: none;
	background: none;
	border: none;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	margin-left: 4px;
	cursor: grab;
	color: var(--tl-color-text-3);
	font-size: 14px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shared-todo-item-drag:hover {
	color: var(--tl-color-text);
}

.shared-todo-item-drag:active {
	cursor: grabbing;
}

.shared-todo-item-assign {
	padding-left: 20px;
	padding-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.shared-todo-item-fairy-select {
	font-size: 10px;
	color: var(--tl-color-text-3);
	background-color: transparent;
	border: 1px solid var(--tl-color-muted-2);
	border-radius: 4px;
	padding: 2px 4px;
	cursor: pointer;
	font-family: inherit;
	outline: none;
}

.shared-todo-item-fairy-select:hover {
	color: var(--tl-color-text);
	border-color: var(--tl-color-text-3);
}

.shared-todo-item-fairy-select:focus {
	border-color: var(--tl-color-primary);
}

.shared-todo-item-help-button {
	font-size: 10px;
	color: var(--tl-color-text-3);
	background-color: transparent;
	border: 1px solid var(--tl-color-muted-2);
	border-radius: 4px;
	padding: 2px 6px;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	font-weight: 500;
}

.shared-todo-item-help-button:hover {
	color: var(--tl-color-text);
	border-color: var(--tl-color-primary);
	background-color: var(--tl-color-muted-1);
}

/* Status variants */

.shared-todo-item--todo .shared-todo-item-icon {
	color: var(--tl-color-text-3);
}

.shared-todo-item--in-progress .shared-todo-item-icon {
	color: var(--tl-color-primary);
}

.shared-todo-item--in-progress .shared-todo-item-text {
	font-weight: 500;
	color: var(--tl-color-text);
}

.shared-todo-item--done .shared-todo-item-icon {
	color: rgb(76, 200, 94);
}

.shared-todo-item--done .shared-todo-item-text {
	color: var(--tl-color-text-2);
	text-decoration: line-through;
}

.shared-todo-item-project-indicator {
	position: absolute;
	top: -2px;
	left: -2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 2px solid var(--tl-color-panel);
	pointer-events: none;
	z-index: 1;
}

/* shared todo Input */

.shared-todo-input {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px;
	border-bottom: 1px solid var(--tl-color-divider);
	flex-shrink: 0;
}

.shared-todo-input-field {
	flex: 1;
	padding: 6px 8px;
	background-color: transparent;
	border: 1px solid var(--tl-color-muted-2);
	border-radius: 4px;
	color: var(--tl-color-text);
	font-size: 12px;
	font-family: inherit;
	outline: none;
}

.shared-todo-input-field::placeholder {
	color: var(--tl-color-text-3);
}

.shared-todo-input-field:focus {
	border-color: var(--tl-color-primary);
}

.shared-todo-input-submit {
	flex-shrink: 0;
	width: 32px;
	height: 100%;
	background-color: var(--tl-color-primary);
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	padding: 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.shared-todo-input-submit:hover:not(:disabled) {
	background-color: var(--tl-color-focus);
}

.shared-todo-input-submit:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.fairy-todo-unread-indicator {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #ff8c00;
	pointer-events: none;
}

/* Fairy config dialog */

.fairy-config-input {
	background-color: var(--tl-color-low);
	padding: 8px;
	border-radius: var(--tl-radius-2);
	border: 1px solid var(--tl-color-muted-2);
}

.fairy-config-dialog select {
	background-color: var(--tl-color-low);
	padding: 9px 8px;
	border-radius: var(--tl-radius-2);
	border: 1px solid var(--tl-color-muted-2);
	color: var(--tl-color-text);
	font-size: 12px;
	font-family: inherit;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	outline: none;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px;
	padding-right: 32px;
}

/* Fairy Group Chat */

.fairy-group-chat {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.fairy-group-chat-leader-toggle-container {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	flex: 1;
	min-height: 0;
}

.fairy-group-chat-leader-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 4px 0;
	font-size: 11px;
	color: var(--tl-color-text-3);
}

.fairy-group-chat-leader-info p {
	margin: 0;
	line-height: 1.4;
}

/* Fairy Group Chat Input */

.fairy-group-chat-input {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: start;
	gap: 8px;
	padding: 8px 8px 8px 12px;
	border-top: 1px solid var(--tl-color-divider);
	height: 41px;
}

.fairy-group-chat-input__wrapper {
	flex: 1;
	display: flex;
	align-items: start;
	min-height: 0;
	height: 100%;
}

.fairy-group-chat-input__field {
	pointer-events: auto;
	border: none;
	background: transparent;
	color: var(--tl-color-text);
	font-size: 12px;
	font-family: inherit;
	outline: none;
	width: 100%;
	height: 100%;
	resize: none;
	overflow-y: auto;
	line-height: 1.5;
	scrollbar-width: thin;
	scrollbar-color: var(--tl-color-muted-1) transparent;
}

.fairy-group-chat-input__field::-webkit-scrollbar {
	width: 6px;
	background: transparent;
}

.fairy-group-chat-input__field::-webkit-scrollbar-track {
	background: transparent;
}

.fairy-group-chat-input__field::-webkit-scrollbar-thumb {
	background: var(--tl-color-muted-1);
	border-radius: 3px;
}

.fairy-group-chat-input__field::placeholder {
	color: var(--tl-color-text-3);
}

.fairy-group-chat-input__submit {
	pointer-events: auto;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	background-color: transparent;
	border: none;
	border-radius: var(--tl-radius-2);
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	align-self: flex-start;
	transition: background-color 0.1s ease;
}

.fairy-group-chat-input__submit:hover:not(:disabled) {
	background-color: var(--tl-color-hint);
}

.fairy-group-chat-input__submit:disabled {
	filter: grayscale(100%);
	cursor: not-allowed;
	opacity: 0.5;
}

/* In Canvas Todo */

.in-canvas-todo-item-wrapper {
	position: absolute;
	transform: translate(0, 0) scale(var(--tl-scale));
	transform-origin: 0% 0%;
	padding: 6px; /* extra mouseover padding bc the todo item is small when unhovered */
	pointer-events: auto;
}

.in-canvas-todo-item {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	background-color: var(--tl-color-panel);
	border-radius: 6px;
	padding: 6px;
	font-size: 12px;
	line-height: 1.3;
	box-shadow: var(--tl-shadow-1);
	pointer-events: auto;
	user-select: none;
	width: auto;
	overflow: hidden;
	opacity: 0.67;
	margin: -6px; /* offset mouseover padding to top left of todo item is in correct position */
}

.in-canvas-todo-item-delete {
	position: relative;
	appearance: none;
	background: none;
	border: none;
	width: 16px;
	height: 16px;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: var(--tl-color-text-3);
	font-size: 16px;
	line-height: 1;
	pointer-events: auto;
	display: none;
	flex-shrink: 0;
}

.in-canvas-todo-item-icon {
	appearance: none;
	background: none;
	border: none;
	width: 24px;
	height: 24px;
	padding: 0px 0px;
	margin: -3px;
	margin-top: -3px;
	color: var(--tl-color-text-3);
	font-size: 10px;
	line-height: 1;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.in-canvas-todo-list:not(.in-canvas-todo-list--dragging)
	.in-canvas-todo-item-wrapper:hover
	.in-canvas-todo-item {
	opacity: 1;
}

.in-canvas-todo-list:not(.in-canvas-todo-list--dragging)
	.in-canvas-todo-item-wrapper:hover
	.in-canvas-todo-item-text {
	display: block;
}

.in-canvas-todo-list:not(.in-canvas-todo-list--dragging)
	.in-canvas-todo-item-wrapper:hover
	.in-canvas-todo-item-delete {
	display: block;
}

.in-canvas-todo-list:not(.in-canvas-todo-list--dragging)
	.in-canvas-todo-item-wrapper:hover
	.in-canvas-todo-item-delete:hover {
	color: var(--tl-color-text);
}

.in-canvas-todo-item-text {
	color: var(--tl-color-text-3);
	width: 160px;
	overflow-y: scroll;
	padding-top: 2px;
	word-wrap: break-word;
	word-break: break-word;
	white-space: normal;
	pointer-events: auto;
	scrollbar-width: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	scrollbar-color: var(--tl-color-muted-1) transparent;
	display: none;
	flex-shrink: 0;
}

.in-canvas-todo-item-text::-webkit-scrollbar {
	width: 8px;
}

.in-canvas-todo-item-text::-webkit-scrollbar-track {
	background: transparent;
}

.in-canvas-todo-item-text::-webkit-scrollbar-thumb {
	background: var(--tl-color-muted-1);
	border-radius: 4px;
}

/* Status variants */

.in-canvas-todo-item--todo .in-canvas-todo-item-icon {
	color: var(--tl-color-text-3);
}

.in-canvas-todo-item--in-progress .in-canvas-todo-item-icon {
	color: var(--tl-color-primary);
}

.in-canvas-todo-item--in-progress .in-canvas-todo-item-text {
	font-weight: 500;
	color: var(--tl-color-text);
}

.in-canvas-todo-item--done .in-canvas-todo-item-icon {
	color: rgb(76, 200, 94);
}

.in-canvas-todo-item--done .in-canvas-todo-item-text {
	color: var(--tl-color-text-2);
	text-decoration: line-through;
}

.in-canvas-todo-item-project-indicator {
	position: absolute;
	top: -2px;
	left: -2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 2px solid var(--tl-color-panel);
	pointer-events: none;
	z-index: 1;
}

/* Fairy Debug Dialog Styles */

.fairy-debug-json-display {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: monospace;
	font-size: 12px;
	background: var(--color-low);
	padding: 8px;
	border-radius: 4px;
}

.fairy-debug-pre {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
}

.fairy-debug-tabs {
	display: flex;
	flex-direction: row;
	gap: 8px;
	padding: 8px;
}

.fairy-debug-view-dropdown {
	padding: 8px;
	max-width: 200px;
}

.fairy-debug-dropdown {
	z-index: var(--tl-layer-canvas-in-front) !important;
}

.fairy-debug-view-label {
	display: block;
	margin-bottom: 4px;
}

.fairy-debug-view-button {
	width: 100%;
}

.fairy-debug-dialog-body {
	flex: 1 1 0;
	min-height: 0;
	overflow: auto;
}

.fairy-debug-view-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fairy-debug-container {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: monospace;
	font-size: 12px;
	background: var(--color-low);
	padding: 8px;
	border-radius: 4px;
}

.fairy-debug-header {
	font-weight: bold;
	color: var(--color-text-2);
	margin-bottom: 4px;
}

.fairy-debug-empty {
	color: var(--color-text-3);
	font-style: italic;
}

.fairy-debug-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fairy-debug-key-value {
	display: flex;
	gap: 8px;
}

.fairy-debug-label {
	font-weight: bold;
	color: var(--color-text-2);
}

.fairy-debug-config-container {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: monospace;
	font-size: 12px;
	background: var(--color-low);
	padding: 8px;
	border-radius: 4px;
}

.fairy-debug-projects-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-family: monospace;
	font-size: 12px;
}

.fairy-debug-projects-header {
	font-weight: bold;
	color: var(--color-text-2);
	margin-bottom: 4px;
}

.fairy-debug-projects-empty {
	color: var(--color-text-3);
	font-style: italic;
}

.fairy-debug-project-card {
	background: var(--color-low);
	padding: 8px;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fairy-debug-project-name {
	font-weight: bold;
	color: var(--color-text-2);
}

.fairy-debug-project-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fairy-debug-project-todos-section {
	margin-top: 8px;
}

.fairy-debug-project-todos-header {
	font-weight: bold;
	color: var(--color-text-2);
	margin-bottom: 4px;
}

.fairy-debug-project-todos-empty {
	color: var(--color-text-3);
	font-style: italic;
	font-size: 11px;
}

.fairy-debug-project-todos-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: var(--color-panel);
	padding: 8px;
	border-radius: 4px;
}

.fairy-debug-project-todo-item {
	font-size: 11px;
}

.fairy-debug-project-separator {
	margin: 8px 0;
}

.fairy-debug-shared-todos-container {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-family: monospace;
	font-size: 12px;
}

.fairy-debug-shared-todos-header {
	font-weight: bold;
	color: var(--color-text-2);
	margin-bottom: 4px;
}

.fairy-debug-shared-todos-empty {
	color: var(--color-text-3);
	font-style: italic;
}

.fairy-debug-shared-todo-item {
	margin-bottom: 8px;
}

.fairy-debug-shared-todo-separator {
	margin: 8px 0;
}

.home-debug-options-container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 24px;
	padding: 8px;
}

.fairy-debug-options-container {
	display: flex;
	flex-direction: row;
	gap: 24px;
	padding: 8px;
}

.fairy-debug-flags-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fairy-debug-options-buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 8px;
}

.fairy-debug-flags-checkboxes {
	display: flex;
	flex-direction: column;
	/* gap: 8px; */
}

.fairy-debug-flags-button {
	flex-shrink: 0;
	width: auto;
}

.fairy-debug-flags-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	border-radius: 4px;
}

.fairy-debug-flags-checkbox:hover {
	background: var(--color-hovered);
}

.fairy-debug-flags-checkbox input[type='checkbox'] {
	cursor: pointer;
	margin: 0;
}

.fairy-debug-flags-checkbox span {
	/* font-size: 13px; */
	color: var(--color-text);
	user-select: none;
}
